package com.server.entity;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

import java.math.BigInteger;


/**
 * The persistent class for the ItemImage database table.
 * 
 */
@Entity
@XmlRootElement
@Table(schema="mhp")
public class ItemImage implements Serializable {
	private static final long serialVersionUID = 1L;

	private String imageUrl;
	
	@Id
	private String itemId;
	

	@ManyToOne(cascade={CascadeType.PERSIST,CascadeType.MERGE})
	@JoinColumn(name="ItemId",insertable=false, updatable=false)
	private Item item;
	
	public ItemImage() {
	}

	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}

	public String getItemId() {
		return this.itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

}